package com.example.a2032.net.jstylenet;

import androidx.annotation.NonNull;
import androidx.room.Dao;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * 通讯录
 */
@Entity(tableName = "ContactData")
public class ContactData {
    //服务器传过来的id
    @PrimaryKey
    @NonNull
    String id;
    String phone;
    String name;

    public long getContactId() {
        return contactId;
    }

    public void setContactId(long contactId) {
        this.contactId = contactId;
    }

    //系统通讯录的id
    long contactId = -1;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
